﻿@using Microsoft.AspNet.Identity
@model Webmedia.Tour.WMTour.Models.ManageUserViewModel

<p>You're logged in as <strong>@User.Identity.GetUserName()</strong>.</p>

@using (Html.BeginForm("Manage", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
{
    @Html.AntiForgeryToken()
    <h4>Change Password Form</h4>
    <hr />
    @Html.ValidationSummary()
    
    <div class="control-group">
		<div class="control-label">
            @Html.LabelFor(m => m.OldPassword, new { @class = "col-md-2 control-label" })
            </div>
           <div class="controls">
               @Html.PasswordFor(m => m.OldPassword, new { @class = "form-control" })
            </div><!--end content control-->
        </div><!--end form control-->
    <div class="control-group">
		<div class="control-label">
            @Html.LabelFor(m => m.NewPassword, new { @class = "col-md-2 control-label" })
            </div>
           <div class="controls">
               @Html.PasswordFor(m => m.NewPassword, new { @class = "form-control" })
            </div><!--end content control-->
        </div><!--end form control-->
     <div class="control-group">
		<div class="control-label">
            @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" })
            </div>
           <div class="controls">
               @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" })
            </div><!--end content control-->
        </div><!--end form control-->
 
    <div class="form-group">
        <div class="col-md-offset-2 col-md-10">
            <input type="submit" value="Change password" class="btn btn-default" />
        </div>
    </div>
}
